package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "shopping_record")
public class Shopping_record {
    @TableId(value = "uid")
    private int   uid;//用户编号
    private int        Pid;//商品编号
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date Time;//购买时间
    private int      State;//订单状态
    private String Price;//商品价格
    private int      Counts;//购买总数

}
